package main
import(
	"fmt"
)
//string 转换
func main(){
	var age int = 29
	var price float64 = 23.456
	var isMale bool = true
	var myChar byte = 'i'
	var str = fmt.Sprintf("%d",age)
	fmt.Printf("str's type is %T equels to %q \n",str,str)
	var str1 = fmt.Sprintf("%f",price)
	fmt.Printf("str1's type is %T equels to %q \n",str1,str1)
	var str2 = fmt.Sprintf("%t",isMale)
	fmt.Printf("str2's type is %T equels to %q \n",str2,str2)
	var str3 = fmt.Sprintf("%c",myChar)
	fmt.Printf("str3's type is %T equels to %q \n",str3,str3)

}